/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package models;

import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import tableModels.TableLieuAVisiterModel;

/**
 *
 * @author juju
 */
public class LieuAVisiter {
    protected int _identifiant;
    protected String _NomLieu;
    protected String _Ville;
    protected String _Pays;
    protected String _Descriptif;
    protected int _PrixVisite;
    private LieuAVisiterMapper mapper;
    
    
     public LieuAVisiter() {
        this.mapper = new LieuAVisiterMapper();
    }

     public int getIdentifiant() {
        return _identifiant;
    }

    public void setIdentifiant (int _identifiant) {
        this._identifiant = _identifiant;
        
    }

    public String getNomLieu() {
        return _NomLieu;
    }

    public void setNomLieu(String _NomLieu) {
        this._NomLieu = _NomLieu;
    }

    public String getVille() {
        return _Ville;
    }

    public void setVille(String _Ville) {
        this._Ville = _Ville;
    }

    public String getPays() {
        return _Pays;
    }

    public void setPays(String _Pays) {
        this._Pays = _Pays;
    }

    public String getDescriptif() {
        return _Descriptif;
    }

    public void setDescriptif(String _Descriptif) {
        this._Descriptif = _Descriptif;
    }

    public int getPrixVisite() {
        return _PrixVisite;
    }

    public void setPrixVisite(int _PrixVisite) {
        this._PrixVisite = _PrixVisite;
    }
    
      public void find(int id) {
        try {
            this.mapper.find(id, this);
        } catch (SQLException ex) {
            Logger.getLogger(Client.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
      public TableLieuAVisiterModel fetchAll() {
        return mapper.fetchAll();
    }
    
}
